package com.chen;

import com.chen.filter.AccessFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

/**
 * @decription
 * @atuhor:陈红卫
 * @create : 2017-06-18-21:35
 */
@EnableZuulProxy
@SpringBootApplication
public class ZULApplication {

    public static void main(String[] args) {
         new SpringApplicationBuilder(ZULApplication.class).web(true).run(args);
    }



    @Bean
    public AccessFilter accessFilter(){
      return   new AccessFilter();
    }
}
